From: Yuri Astrakhan Date: Thu, 9 Apr 2015 05:20:56 +0000 (-0400) Subject: Fixed ApiQueryBase::selectNamedDb() return value X-Git-Tag: 1.31.0-rc.0~11762^2 X-Git-Url: http://git.cyclocoop.org/%22.%24info%5B?a=commitdiff_plain;h=fe4e448e9c0e9420660fbe8138065d762557dadd;p=lhc%2Fweb%2Fwiklou.git Fixed ApiQueryBase::selectNamedDb() return value The doc specifies that this func should return named database connection, but it does not. Fixed. Change-Id: Ibe62ff4275201382243c4861cc4fd15cf0316e43 --- diff --git a/includes/api/ApiQueryBase.php b/includes/api/ApiQueryBase.php index 1d4cff9109..6c9d999c92 100644 --- a/includes/api/ApiQueryBase.php +++ b/includes/api/ApiQueryBase.php @@ -123,6 +123,7 @@ abstract class ApiQueryBase extends ApiBase { */ public function selectNamedDB( $name, $db, $groups ) { $this->mDb = $this->getQuery()->getNamedDB( $name, $db, $groups ); + return $this->mDb; } /**